package com.shangxian.giveithome.service;


import com.shangxian.giveithome.entity.*;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
@Service
public interface UserService {

    UserDetails create(UserInfo userInfo);

    void perfact(UserPerfect userPerfect, HttpServletRequest request);

    UserDetails updateUser(PutUser putUser, HttpServletRequest request);

    PageableDetails queryByAdoption(Long id, Pageable pageable);

    PageableDetails queryByPlace(Long id, Pageable pageable);

    PageableDetails queryByPlaceHistory(Long id, Pageable pageable);

    PageableDetails searchPeople(Long id, Pageable pageable);

    PageableDetails searchPeopleHistory(Long id, Pageable pageable);

    UserData queryUserData(Long id);

    PageableDetails searchPet(Long id, Pageable pageable);

    PageableDetails searchPetHistory(Long id, Pageable pageable);

    PageableDetails queryMyActivity(Long id, Long offSet, Pageable pageable);

    PageableDetails queryMyActivityHistory(Long id, Long offSet, Pageable pageable);

    List<UserSimple> queryByIds(List<Long> ids);

    UserSimple queryById(Long id);

    List<User> queryRole3();

    int moveuser();

    int movepet();

    int movespeop();

    int movespet();
    void removeUserDetails(Long id);

    PageableDetails noticeCenter(HttpServletRequest request, Pageable pageable);
}
